<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>合伙人详情</title>
<meta name="viewport" content="width=100%, initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/lib/weix/style/weui.min.css">
<link rel="stylesheet" href="/css/fonts.css">
<link rel="stylesheet" href="/css/comm.css">
<link rel="stylesheet" href="/css/detailed_hej.css">
</head>

<body>
<div class="th-detail__htoux"><span class="tb" style="background-color:#ffbf24"><i class="icon-user "></i></span></div>

<div class="th-details">
	<div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">姓名</div></div>
        <div class="th-detail__yc" id="J_customer"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">手机</div></div>
        <div class="th-detail__yc" id="J_phone"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">类型</div></div>
        <div class="th-detail__yc" id="J_roleName"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">注册时间</div></div>
        <div class="th-detail__yc" id="J_addTime"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">推荐人</div></div>
        <div class="th-detail__yc" id="J_addName"></div>
    </div>
    
    <div class="th-detail">
    	<div class="th-detail__zc"><div class="nrt">获得奖励</div></div>
        <div class="th-detail__yc" id="J_points"></div>
    </div>

</div>

<script src="/js/zepto.min.js"></script>
<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
<script src="/js/comm.js"></script>
<script type="text/javascript">
$(function(){	
	var id  = "${id}";
	var data = {id:id};
	var url = "/user/getUserDeail";
	$.ajax({
		type: "POST",
		async: false,
		dataType: 'json',
		contentType: "application/json; charset=utf-8",
		data: JSON.stringify(data),
		url: url,
		success: function(res){
			console.log(res);
			if(res.code == 200){
				var datas = res.data;
				$('#J_customer').html(datas.name);
				$('#J_phone').html(datas.phone);
				$('#J_roleName').html(datas.roleName);
				$('#J_addTime').html(datas.addtime);
				$('#J_addName').html(datas.addName);
				$('#J_points').html(datas.points);
			}else{
				weui.topTips(res.msg);
			}
		},
		error: function(){
	
		},
		complete: function(){
		}
	});
});
</script>
</body>
</html>